//数组的解构

const arr = [1,2,3]

const [a,b,c] = arr
console.log(a,b,c)

const [,,c] = arr
console.log(a,b,c)

const [a,...c] = arr
console.log(a,b,c)

const [a,b,c,more] = arr
console.log(more)

const [a,b=123,c,more='default value'] = arr
console.log(a,b,c,more)